package com.xcj.cloud.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Accessors(chain=true)
@Data
@TableName("t_house")
public class House {

    //id
    @TableId(type = IdType.ASSIGN_ID)
    private Long hid;

    //标题
    private String title;

    //宣传图
    private String img;

    //详情图
    private String images;

    //房源所在城市
    private String city;

    //租金
    private double rent;

    //面积
    private String area;

    //房屋类型
    private String type;

    //出租方式
    private String mode;

    //地址
    private String address;

    //房屋说明
    private String explain;

    //配套设施
    private String facilities;

    //交通情况
    private String trafficInfo;

    //添加字段填充内容
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;  //创建时间

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;   //更新时间

    //是否删除 默认为0,表示没有删除
    private int isDel = 0;
}
